import request from '@/utils/request'

export default {
  getLogsList(searchModel) {
    return request({
      url: '/logs/list',
      method: 'get',
      params: {
        username: searchModel.username,
        pageNo: searchModel.pageNo,
        pageSize: searchModel.pageSize
      }
    })
  },
  getLogsById(id) {
    return request({
      // url: '/logs/' + id,
      url: `/logs/${id}`,
      method: 'get'
    })
  },
  deleteLogsById(id) {
    return request({
      url: `/logs/delete/${id}`,
      method: 'delete'
    })
  },
  getAllLogsList() {
    return request({
      url: '/logs/all',
      method: 'get'
    })
  },
}
